package service;

import user.Student;

public class StuService {
    private Student[] students;//保存学生对象

    public StuService(int size) {
        students = new Student[size];//当创建StuService对象，指定数组大小
        students[0] = new Student("mary", "0123456789", '女', 20, "0123456", "18200290858", 90, "1班", 1);
    }

    //list方法，返回students信息
    public Student[] list() {
        return students;
    }
}
